objects= config.o main.o signal_hander.o torrent_file.o sha1.o peer.o bitmap.o\
	policy.o data.o

CC=g++
CFLAGS=-g -Wall

silentbt:$(objects)
	$(CC) $(CFLAGS) -o silentbt  $(objects)
	
config.o: config.h config.cpp 
	$(CC) $(CFLAGS) -c config.cpp
signal_hander.o: signal_hander.h signal_hander.cpp 
	$(CC) $(CFLAGS) -c signal_hander.cpp	
torrent_file.o: torrent_file.h torrent_file.cpp 
	$(CC) $(CFLAGS) -c torrent_file.cpp	
sha1.o: sha1.h sha1.cpp 
	$(CC) $(CFLAGS) -c sha1.cpp	
peer.o: peer.h peer.cpp 
	$(CC) $(CFLAGS) -c peer.cpp	
bitmap.o: bitmap.h bitmap.cpp 
	$(CC) $(CFLAGS) -c bitmap.cpp							
policy.o: policy.h policy.cpp 
	$(CC) $(CFLAGS) -c policy.cpp	
data.o: data.h data.cpp 
	$(CC) $(CFLAGS) -c data.cpp			
main.o: main.cpp 
	$(CC) $(CFLAGS) -c main.cpp	


.PHONY:clean
clean:	
	-rm silentbt $(objects)

